<template>
  <div>
    <el-container>
      <el-main>
        <el-table :data="tableData" :height="tabHeight" border style="width: 100%">
          <el-table-column prop="date" label="报废与回收时间" width="180"></el-table-column>
          <el-table-column prop="name" label="类别" width="180"></el-table-column>
          <el-table-column prop="address" label="原因"></el-table-column>
          <el-table-column prop="name" label="血袋编号" width="180"></el-table-column>
          <el-table-column prop="address" label="血液成分"></el-table-column>
          <el-table-column prop="address" label="血型"></el-table-column>
          <el-table-column prop="name" label="血量" width="180"></el-table-column>
          <el-table-column prop="address" label="单位"></el-table-column>
          <el-table-column prop="name" label="备注" width="180"></el-table-column>
          <el-table-column prop="address" label="操作人"></el-table-column>
        </el-table>
      </el-main>
      <el-aside width="280px">
        <el-form ref="form" size="mini" :model="form" label-width="80px">
          <el-form-item label="类别">
            <el-select v-model="form.region" >
              <el-option label="区域一" value="shanghai"></el-option>
              <el-option label="区域二" value="beijing"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="血袋编号">
            <el-input v-model="form.desc"></el-input>
          </el-form-item>
          <el-form-item label="血液成分">
            <el-select v-model="form.region" >
              <el-option label="区域一" value="shanghai"></el-option>
              <el-option label="区域二" value="beijing"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="血袋血型">
            <el-select v-model="form.region" >
              <el-option label="区域一" value="shanghai"></el-option>
              <el-option label="区域二" value="beijing"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="规格">
            <el-input style="width:80px" v-model="form.desc"></el-input>
            <el-select style="width:80px" v-model="form.region" >
              <el-option label="区域一" value="shanghai"></el-option>
              <el-option label="区域二" value="beijing"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="原因">
            <el-select v-model="form.region" >
              <el-option label="区域一" value="shanghai"></el-option>
              <el-option label="区域二" value="beijing"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="备注">
            <el-input type="textarea" v-model="form.desc"></el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary">保存</el-button>
          </el-form-item>
        </el-form>
      </el-aside>
    </el-container>
  </div>
</template>
<script>
export default {
  data() {
    return {
      tableData: [
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        }
      ],
       form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        },
      tabHeight: window.innerHeight - 100-56-61,
    };
  },
};
</script>
<style lang="less" scoped>
</style>